#include "udp_client.hpp"

int main(int argc,char* argv[])
{
  
    if(argc != 3){
        std::cerr << "Usage: " << argv[0] << " server_ip server_port" << std::endl;
        return 1;
    }
    std::string ip  = argv[1];
    int port = atoi(argv[2]);

    UdpClinet *ucli = new UdpClinet(ip, port);
    if(ucli==nullptr)
    {
      std::cerr<<"new 错误"<<std::endl;
    }
    ucli->InitUdpClinet();
    ucli->start();
  
  return 0;
}
